﻿using System.Collections.Generic;
using Missbot.Service;

namespace Missbot.AIModule.Tuling
{
    /// <summary>
    /// 图灵配置
    /// </summary>
    public class TulingConfig : DbBaseEntity
    {
        /// <summary>
        /// 图灵账号名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图灵访问API KEY
        /// </summary>
        public string ApiKey { get; set; }
    }

    public static class TulingConfigDA
    {
        /// <summary>
        /// 获取所有图灵配置
        /// </summary>
        /// <returns></returns>
        public static List<TulingConfig> GetAll()
        {
            return MongoService<TulingConfig>.Get();
        }
    }
}